package com.bins.cloud.gateway.job;

import org.apache.shardingsphere.elasticjob.api.ShardingContext;
import org.apache.shardingsphere.elasticjob.simple.job.SimpleJob;
import org.springframework.stereotype.Component;

@Component
public class MyElasticJob implements SimpleJob {
    @Override
    public void execute(ShardingContext context) {
        // 实现作业逻辑
        System.out.println("作业执行：" + context.getShardingItem());
    }
}